package lianshi;

/**
 * Created by hasee on 2017/9/25.
 */
public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        Student s1 = new Student();
        s1.setId(1);s1.setName("张三");
        Student s2 = new Student();
        s2.setId(2);s2.setName("李四");
        Student s3 = new Student();
        s3.setId(3);s3.setName("王五");
        Student s4 = new Student();
        s4.setId(4);s4.setName("小六");
        myLinkedList.add(s1);
        myLinkedList.add(s2);
        myLinkedList.add(s3);
        myLinkedList.add(0,s4);
        myLinkedList.printAll();
    }
}
